Matthias Clasen [Wed, 10 Apr 2013 01:18:05 +0000 (21:18 -0400)]
Don't free a list that has not been initialized
Chris Cummins [Thu, 28 Mar 2013 14:47:03 +0000 (14:47 +0000)]
wayland: Use more explicit out parameter names
Prevent confusion between positional values and hotspot values.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Chris Cummins [Tue, 9 Apr 2013 10:56:17 +0000 (11:56 +0100)]
Update GtkCssProvider box-shadow documentation
Non-inset box-shadows are no longer ignored by the GTK+ theming engine,
outset shadows are supported.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Chris Cummins [Fri, 5 Apr 2013 09:54:03 +0000 (10:54 +0100)]
cds: enable outset shadows
Adds conditional code paths to GdkCssShadowValue for painting outset
shadows, and allows shadows to be applied in two passes (first outset
then inset). This can be used to draw csd shadows in outer window
borders.
https://bugzilla.gnome.org/show_bug.cgi?id=695998
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Rob Bradford [Tue, 9 Apr 2013 10:49:42 +0000 (11:49 +0100)]
wayland: don't leave root window values uninitialised
Under Wayland we don't know the absolute position of the device but there are
some API calls that expect to get an root window position. Previously we were
not assigning any value to these out parameters potentially leaving the values
undefined.
This change returns the current surface relative position of the device.
Carlos Garnacho [Mon, 8 Apr 2013 15:25:19 +0000 (17:25 +0200)]
quartz: Fix call to missing symbol
This patch can be considered a leftover of commit
6f607fc8b4cd ,
replace the no longer existing function with the GDK function
meant to replace it.
This was noticeable on regular clipboard operations in quartz
Benjamin Otte [Tue, 9 Apr 2013 10:08:08 +0000 (12:08 +0200)]
window: Remember current size
Don't just look at previously remembered sizes, also look at the current
size.
This is useful for cases where the window was resized by the user or WM
and not by the application itself.
https://bugzilla.gnome.org/show_bug.cgi?id=696882
Benjamin Otte [Tue, 9 Apr 2013 10:06:51 +0000 (12:06 +0200)]
window: Split out a function
We don't want to remember sizes in the not resizable case. Also a
function named "guess_default_size" should not look at previous sizes,
it should guess.
Benjamin Otte [Tue, 9 Apr 2013 09:20:49 +0000 (11:20 +0200)]
window: Remove an unused function.
Luckily, we don't need to support an implementation of a minimal WM for
linux-fb anymore (which is what this function was added for).
Benjamin Otte [Mon, 8 Apr 2013 16:05:53 +0000 (18:05 +0200)]
docs: Fix Since tag for frame clock functions
Matthias Clasen [Tue, 9 Apr 2013 02:28:43 +0000 (22:28 -0400)]
wayland: Clean up gdkwayland.h
Make this an include-only header
Benjamin Otte [Mon, 8 Apr 2013 14:25:29 +0000 (16:25 +0200)]
window: restore size after hide/show properly
Old code assumed the size was stored in widget.allocation. This is no
longer true as the allocation is cleared upon hide. However, we store
the last configure request, and that one tracks the last size, so we can
just use that number.
Sometimes things are so easy - once you figure them out...
https://bugzilla.gnome.org/show_bug.cgi?id=696882
Benjamin Otte [Mon, 8 Apr 2013 13:28:22 +0000 (15:28 +0200)]
plug: Don't unregister windows that were never registered
Fixes warnings when trying to unregister the socket window. The socket
window is foreign, so we shouldn't register it in the first place.
https://bugzilla.gnome.org/show_bug.cgi?id=697427
Colin Walters [Mon, 8 Apr 2013 14:16:58 +0000 (10:16 -0400)]
build: Fix srcdir != builddir
Matthias Clasen [Mon, 8 Apr 2013 03:42:55 +0000 (23:42 -0400)]
Extract strings from .ui files without intltool
Tristan Van Berkom [Sat, 30 Mar 2013 09:51:58 +0000 (18:51 +0900)]
GtkVolumeButton: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 30 Mar 2013 08:35:54 +0000 (17:35 +0900)]
GtkFontButton: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 30 Mar 2013 08:12:35 +0000 (17:12 +0900)]
GtkFileChooserButton: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 30 Mar 2013 07:35:39 +0000 (16:35 +0900)]
GtkPathBar: Define children with a GtkBuilder template
Tristan Van Berkom [Fri, 29 Mar 2013 12:47:38 +0000 (21:47 +0900)]
GtkColorEditor: Define children with a GtkBuilder template
Tristan Van Berkom [Fri, 29 Mar 2013 12:34:50 +0000 (21:34 +0900)]
GtkColorPlane: Added construct-only properties to setup the adjustments.
This allows basic construction of this private type in GtkBuilder script,
so it can be used in the GtkColorEditor UI.
Tristan Van Berkom [Thu, 28 Mar 2013 06:06:05 +0000 (15:06 +0900)]
GtkPrintUnixDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Tue, 26 Mar 2013 15:02:25 +0000 (00:02 +0900)]
GtkPageSetupUnixDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Tue, 26 Mar 2013 12:50:28 +0000 (21:50 +0900)]
GtkRecentChooserDefault: Define children with a GtkBuilder template
Tristan Van Berkom [Tue, 26 Mar 2013 10:13:12 +0000 (19:13 +0900)]
GtkFontChooserDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Tue, 26 Mar 2013 09:50:01 +0000 (18:50 +0900)]
GtkFontChooserWidget: Define children with a GtkBuilder template
Tristan Van Berkom [Mon, 25 Mar 2013 12:49:49 +0000 (21:49 +0900)]
GtkFileChooserDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Sun, 24 Mar 2013 16:40:08 +0000 (01:40 +0900)]
GtkFileChooserDefault: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 15:41:07 +0000 (00:41 +0900)]
GtkColorChooserDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 14:02:33 +0000 (23:02 +0900)]
GtkAppChooserDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 12:59:30 +0000 (21:59 +0900)]
GtkAppChooserWidget: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 11:38:43 +0000 (20:38 +0900)]
GtkStatusbar: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 11:17:15 +0000 (20:17 +0900)]
GtkScaleButton: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 10:10:34 +0000 (19:10 +0900)]
GtkAssistant: Define children with a GtkBuilder template
Tristan Van Berkom [Sat, 23 Mar 2013 08:52:48 +0000 (17:52 +0900)]
GtkLockButton: Define children with a GtkBuilder template
Tristan Van Berkom [Fri, 22 Mar 2013 12:51:40 +0000 (21:51 +0900)]
GtkAboutDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Fri, 22 Mar 2013 10:45:31 +0000 (19:45 +0900)]
GtkInfoBar: Define children with a GtkBuilder template
Tristan Van Berkom [Fri, 22 Mar 2013 09:45:24 +0000 (18:45 +0900)]
GtkMessageDialog: Define children with a GtkBuilder template
Tristan Van Berkom [Thu, 21 Mar 2013 08:54:16 +0000 (17:54 +0900)]
GtkDialog: Define children with a GtkBuilder template
As the first composite widget in GTK+, this patch also
adds some Makefile mechanics to list the ui files as
dependencies of the global GTK+ resources, and adds the
initial test case where composite classes should be tested.
Tristan Van Berkom [Sun, 24 Mar 2013 16:40:57 +0000 (01:40 +0900)]
Added directory with Glade catalog
This catalog can be used to work with GTK+'s private widget types,
this patch exposes a private function gtk_glade_catalog_init() which
Glade will use for the sole purpose of initializing some private widget
types in GTK+ that are referenced from various GTK+ composite widget
xml files.
Tristan Van Berkom [Wed, 20 Mar 2013 02:56:39 +0000 (11:56 +0900)]
Add Composite Child machinery and APIs to GtkWidget
This commit implements the needed machinery for GtkWidget
to build it's composite content from GtkBuilder XML and
adds the following API:
o gtk_widget_init_template()
An api to be called in instance initializers of any
GtkWidget subclass that uses template XML to build it's components.
o gtk_widget_class_set_template()
API to associate GtkBuilder XML to a given GtkWidget subclass
o gtk_widget_class_automate_child()
API to declare an object built by GtkBuilder to be associated
with an instance structure offset and automatically set.
o gtk_widget_get_automated_child()
API for bindings to fetch a child declared to be automated by
gtk_widget_class_automate_child(), for the case where bindings
do not generate GObjects under the hood and cannot use structure
offsets to resolve composite object pointers.
o gtk_widget_class_declare_callback[s]()
Declare static functions to be used in signal callbacks from
a given class's template XML
o gtk_widget_class_set_connect_func()
API for bindings to override the signal connection machinery
for a given GtkWidget derived class.
Tristan Van Berkom [Sat, 30 Mar 2013 09:46:16 +0000 (18:46 +0900)]
GtkBuilder: Allow G_PARAM_CONSTRUCT properties to be set on internal children.
This patch allows properties of type G_PARAM_CONSTRUCT to be set
on internal children or explicitly constructed objects (built
with <constructor>) while previously, G_PARAM_CONSTRUCT properties
being set on already constructed objects would result in an misinformed
warning that "construct-only properties cannot be set".
G_PARAM_CONSTRUCT_ONLY properties are still refused as parameters
to already constructed children.
Tristan Van Berkom [Wed, 20 Mar 2013 07:33:52 +0000 (16:33 +0900)]
GtkBuilder: Add private _gtk_builder_extend_with_template()
This adds the definition of the <template> tag with some documentation
on the variant of the format.
_gtk_builder_extend_with_template() is to be used while GtkContainer
builds from composite templates. A couple of error codes are also added
to handle a few new possible failure cases.
DTD Files gtkbuilder.rnc and gtkbuilder.rng have been updated to include
the new <template> tag and it's attributes.
Tristan Van Berkom [Wed, 20 Mar 2013 03:48:38 +0000 (12:48 +0900)]
GtkBuilder: Added api to allow private signal callbacks
In preperation for composite objects, for better encapsulation
the following APIs are added to allow handling of signals declared
in the XML with callbacks declared statically.
o gtk_builder_add_callback_symbol[s]()
Adds a symbol to the internal symbol hash
o gtk_builder_lookup_symbol()
Looks up a symbol, exposed in case added symbols are used
in conjunction with gtk_builder_connect_signals_full()
The default implementation of gtk_builder_connect_signals() now
does not have a strong requirement on GModule (or a strong requirement
on symbols being declared in the global namespace). Instead GModule
is used as a fallback in the case that symbols are not declared
explicitly.
Tristan Van Berkom [Sun, 24 Mar 2013 08:16:20 +0000 (17:16 +0900)]
Work around access to global resources without calling gtk_init()
Some utilities such as GIR and gtk-doc, initialize class vtables without
initializing GTK+, with composite templates accessing resources this
causes a hand full of unneeded warnings.
The workaround for now is the use a private function _gtk_ensure_resources()
which is both called while initializing GTK+, and at the beginning of
gtk_widget_class_set_template_from_resource() (the private function
ensures that the resource will only ever be registered GOnce).
Tristan Van Berkom [Fri, 29 Mar 2013 07:52:28 +0000 (16:52 +0900)]
Deprecate gtk_widget_push_composite_child & friends
Deprecate gtk_widget_push_composite_child, gtk_widget_pop_composite_child,
gtk_widget_set_composite_name, gtk_widget_get_composite_name.
This API is just bloat and was never useful, this patch deprecates
it and removes all internal calls to the composite child APIs
Tristan Van Berkom [Mon, 8 Apr 2013 12:04:50 +0000 (21:04 +0900)]
GtkScale: Properly chain up in GtkBuildableIface->custom_finished()
This was causing <style> markup to be ignored when specified
on GtkScale types.
Matthias Clasen [Sun, 7 Apr 2013 01:16:38 +0000 (21:16 -0400)]
wayland: Implement gdk_keymap_get_modifier_state
Matthias Clasen [Sat, 6 Apr 2013 21:24:29 +0000 (17:24 -0400)]
csd: Implement hide-titlebar-when-maximized
Matthias Clasen [Sat, 6 Apr 2013 21:03:27 +0000 (17:03 -0400)]
wayland: Fix gdk_keymap_translate_keyboard_state
I was confusing indices and masks here, which made the modifier
translation go wrong. With this commit, accelerators work.
Bruce Cowan [Sat, 6 Apr 2013 16:12:21 +0000 (17:12 +0100)]
Updated British English translation
Matthias Clasen [Sat, 6 Apr 2013 14:43:38 +0000 (10:43 -0400)]
wayland: Implement gdk_keymap_translate_keyboard_state
Matthias Clasen [Sat, 6 Apr 2013 14:40:56 +0000 (10:40 -0400)]
wayland: Fix up key event translation
The is_modifier field is supposed to be set if the key
would act as a modifier, not if any modifiers are currently
active. To fix this, introduce a private
_gdk_wayland_keymap_key_is_modifier function.
At the same time, make the hardware_keycode field in key
events actually contain the hardware keycode, not a copy
of the keyval.
Matthias Clasen [Sat, 6 Apr 2013 14:38:26 +0000 (10:38 -0400)]
trivial whitespace fix
Matthias Clasen [Sat, 6 Apr 2013 14:35:26 +0000 (10:35 -0400)]
wayland: Return NULL as the keyval name for 0
This is what the X11 backend does, and it makes the "NoSymbol"
disappear from menuitems that don't have an accelerator.
Aron Xu [Sat, 6 Apr 2013 14:30:15 +0000 (22:30 +0800)]
Update Simplified Chinese translation
Wylmer Wang [Sat, 6 Apr 2013 14:18:38 +0000 (22:18 +0800)]
Update Simplified Chinese translation
Tristan Van Berkom [Sat, 6 Apr 2013 09:42:19 +0000 (18:42 +0900)]
GtkRecentChooserMenu: avoid accessing a NULL action
When the GtkActivatable sets the related action, the activatable
properties are sync'ed. In this case the null check is important
to avoid updating from a NULL action.
Tristan Van Berkom [Sat, 6 Apr 2013 08:56:19 +0000 (17:56 +0900)]
gtk_recent_chooser_set_filter: Allow NULL value to unset the filter.
While GtkRecentChooser implementations accept for the "filter" property
to unset the current filter, the API fires an unneeded assertion.
This patch removes the assertion.
Benjamin Otte [Sat, 6 Apr 2013 08:46:00 +0000 (10:46 +0200)]
reftests: Add a test for window default size
https://bugzilla.gnome.org/show_bug.cgi?id=697275
Benjamin Otte [Thu, 4 Apr 2013 14:54:45 +0000 (16:54 +0200)]
tests: Remove multiscreen code from teststusicon
Benjamin Otte [Thu, 4 Apr 2013 14:38:19 +0000 (16:38 +0200)]
tests: Remove testmultiscreen example
There aren't multiple screens anymore, so no need to test that.
Multiple displays can be tested with gtk-demo and testgtk.
Benjamin Otte [Thu, 4 Apr 2013 14:36:09 +0000 (16:36 +0200)]
testgtk: Get rid of screen part in display & screen test
Benjamin Otte [Thu, 4 Apr 2013 14:22:48 +0000 (16:22 +0200)]
gdk: Deprecate gdk_display_get_n_screens()
Benjamin Otte [Thu, 4 Apr 2013 14:22:12 +0000 (16:22 +0200)]
x11: Simplify code for single-screen case
Benjamin Otte [Thu, 4 Apr 2013 14:21:50 +0000 (16:21 +0200)]
gtk: Simplify code for reduced screen count
Benjamin Otte [Thu, 4 Apr 2013 14:19:36 +0000 (16:19 +0200)]
icontheme: Remove unused function
Benjamin Otte [Tue, 2 Apr 2013 12:38:24 +0000 (14:38 +0200)]
gtk-demo: Remove multiscreen support
There's only one screen per display, so no need to let users select from
a list of that 1 screen.
Tristan Van Berkom [Sat, 6 Apr 2013 08:09:27 +0000 (17:09 +0900)]
GdkOffscreenWindow: Implement gdk_window_get_frame_extents()
This avoids crashes in gtk_window_get_position() whenever the GdkWindow
is offscreen.
Thomas Hindoe Paaboel Andersen [Fri, 5 Apr 2013 19:39:41 +0000 (21:39 +0200)]
reftests/Makefile.am: remove whitespace following trailing backslash
Shankar Prasad [Fri, 5 Apr 2013 18:54:52 +0000 (00:24 +0530)]
Updated kn translations
Alexander Larsson [Fri, 5 Apr 2013 15:06:09 +0000 (17:06 +0200)]
broadway: Unsure we clear the grab on window hide
Alexander Larsson [Fri, 5 Apr 2013 14:56:35 +0000 (16:56 +0200)]
broadway: Fix warning
Don't pass NULL source_device in grab/ungrab events
Shankar Prasad [Fri, 5 Apr 2013 13:50:14 +0000 (19:20 +0530)]
Updated kn translations
Tristan Van Berkom [Fri, 5 Apr 2013 11:44:12 +0000 (20:44 +0900)]
objects-finalize test: Blacklist gdk_pixbuf_simple_anim_iter_get_type()
Matthias Clasen [Fri, 5 Apr 2013 11:21:40 +0000 (07:21 -0400)]
wayland: Implement more keymap functions
This commit implements gdk_keymap_get_entries_for_keyval
and gdk_keymap_lookup_key.
Matthias Clasen [Fri, 5 Apr 2013 01:52:12 +0000 (21:52 -0400)]
wayland: Implement gdk_keymap_get_entries_for_keycode
Tristan Van Berkom [Fri, 5 Apr 2013 07:32:56 +0000 (16:32 +0900)]
Added test case to assert all object types finalize properly.
The test case uses a weak ref to assert objects can finalize,
and then spins the main loop shortly after finalizing to assert
that the finalized object did not leak GSources into the main context
causing latent crashes.
Matthias Clasen [Fri, 5 Apr 2013 01:10:18 +0000 (21:10 -0400)]
wayland: Always initialize directions
I forgot to initialize directionm in gdk_wayland_keymap_new,
leading to crash.
Cosimo Cecchi [Thu, 4 Apr 2013 21:17:05 +0000 (17:17 -0400)]
build: bump required GLib version to 2.37.0
Balázs Úr [Thu, 4 Apr 2013 19:49:01 +0000 (21:49 +0200)]
Updated Hungarian translation
Cosimo Cecchi [Wed, 3 Apr 2013 18:19:18 +0000 (14:19 -0400)]
bloatpad: add a test for GApplication's busy state
https://bugzilla.gnome.org/show_bug.cgi?id=672018
Alexander Larsson [Thu, 4 Apr 2013 13:38:40 +0000 (15:38 +0200)]
Fix gtk_window_set_opacity()
We *do* want to call gdk_window_set_opacity() on toplevels, because
this particular case does work.
https://bugzilla.gnome.org/show_bug.cgi?id=697263
Matthias Clasen [Thu, 4 Apr 2013 03:52:52 +0000 (23:52 -0400)]
wayland: Emit ::direction-changed when appropriate
We always emit direction-changed when we get a new keymap, but
for state changes, we compare old and new direction and only
emit the signal when the direction actually changes.
Matthias Clasen [Thu, 4 Apr 2013 03:45:54 +0000 (23:45 -0400)]
wayland: Implement keymap direction
This is very similar to the X11 implementation.
Pavel Vasin [Thu, 28 Mar 2013 11:21:11 +0000 (15:21 +0400)]
wayland: display: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=696767
Pavel Vasin [Thu, 28 Mar 2013 11:17:54 +0000 (15:17 +0400)]
GtkHeaderBar: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=696767
Sébastien Wilmet [Wed, 3 Apr 2013 17:08:16 +0000 (19:08 +0200)]
GtkWindow: fix notify of :attached-to
https://bugzilla.gnome.org/show_bug.cgi?id=697200
Alexander Larsson [Wed, 3 Apr 2013 13:50:54 +0000 (15:50 +0200)]
broadway: Ensure we allocate shm surface space early
This is nicer then getting random sigbus later
Alexander Larsson [Wed, 3 Apr 2013 13:49:54 +0000 (15:49 +0200)]
Broadway: Fix shm names
We were sometimes getting zero chars in the name, making them
shorter, due to an off-by-zero in the size.
Alexander Larsson [Wed, 3 Apr 2013 13:46:21 +0000 (15:46 +0200)]
broadway: destroy old surface before creating new one
We were not using the old one anyway, and this may in some cases
use less memory (although in most cases the server has a ref to the
surface anyway).
Cosimo Cecchi [Tue, 2 Apr 2013 20:36:30 +0000 (16:36 -0400)]
window: don't schedule a display of mnemonics if window has no modifier
When the window has no mnemonics modifier set, as in the case of a
GtkMenu, never schedule a display of mnemonics on focus-in.
Previously, for those windows, the GdkModifierType mask fetched from the
device would typically have been zero, leading to the
mnemonic_modifier == (mask & gtk_accelerator_get_default_mod_mask ())
check to succeed, so we would always trigger a display for popup menus.
https://bugzilla.gnome.org/show_bug.cgi?id=697144
Cosimo Cecchi [Tue, 2 Apr 2013 20:33:33 +0000 (16:33 -0400)]
window: refactor a function
Instead of having maybe_set_mnemonics_visible(), separate the checks
from the actual scheduling of mnemonics display.
https://bugzilla.gnome.org/show_bug.cgi?id=697144
Cosimo Cecchi [Tue, 2 Apr 2013 19:56:31 +0000 (15:56 -0400)]
window: rename functions dealing with mnemonic delayed display
Don't mention "auto mnemonics", since those methods are purely about
scheduling a delayed display, and that makes understanding the code a
bit harder.
https://bugzilla.gnome.org/show_bug.cgi?id=697144
Cosimo Cecchi [Tue, 2 Apr 2013 19:54:02 +0000 (15:54 -0400)]
window: reset timeout source id before setting property
gtk_window_set_mnemonics_visible() will try to g_source_remove() it
otherwise, which seems harmless, but conceptually wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=697144
Wojciech Szczęsny [Tue, 2 Apr 2013 14:05:11 +0000 (16:05 +0200)]
Updated Polish translation
Rob Bradford [Tue, 2 Apr 2013 11:04:22 +0000 (12:04 +0100)]
gdkdisplay: Warn if asked for a non-zero screen not a zero screen
Following on from
a6b29d73 this commit correctly warn if you try and use
deprecated multiple screen behaviour.
Benjamin Otte [Tue, 2 Apr 2013 09:44:08 +0000 (11:44 +0200)]
style: Add missing deprecation markers
Some functions in gtkstyle.h were overlooked when we added the
GDK_DEPRECATED macros.
Also add IGNORE_DEPRECATIONS to the few remaining callers of those
functions.
Benjamin Otte [Tue, 2 Apr 2013 09:42:54 +0000 (11:42 +0200)]
window: Remove call to gtk_widget_reset_rc_styles()
First of all, that call is deprecated. Second, we don't have RC styles
anymore. Third, what that function does today is invalidate style
contexts, but that happens automatically when setting the screen on the
style context later.
So this function is completely unnecessary.
Benjamin Otte [Mon, 1 Apr 2013 13:38:19 +0000 (15:38 +0200)]
broadway: Mark deprecated function call
... to avoid gcc warning us. Ideally, we'd not call a deprecated
function here, but I'm lazy.